﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Text;

namespace Acoris.Content
{
    using Acoris.Core;

    /// <summary>
    /// 表示一个分页
    /// </summary>
    public sealed class ContentSection
    {
        private ObservableCollection<string> _contentCollection;

        // Warning:
        // 警告：
        // do not use the constructor expression
        // 构造函数不要使用构造表达式，这会导致可读性较差

        /// <summary>
        /// 初始化一个分页
        /// </summary>
        public ContentSection() {
            _contentCollection = new ObservableCollection<string>();
        }

        /// <summary>
        /// 表示当前分页的标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 当前分页的内容集合
        /// </summary>
        public ObservableCollection<string> Content {
            get {
                return _contentCollection;
            }
        }

        public override string ToString()
        {
            return this.Title;
        }
    }
}
